#ifndef CalcMODsizeH
 #define CalcMODsizeH

 #define  MaxSize        BASEsize
//
 #ifdef   AINsize
   #if    AINsize>MaxSize
                           #undef  MaxSize
                           #define MaxSize        AINsize
   #endif
 #endif
//
 #ifdef   DINsize
   #if    DINsize>MaxSize
                           #undef  MaxSize
                           #define MaxSize        DINsize
   #endif
 #endif
//
 #ifdef   ADOsize
   #if    ADOsize>MaxSize
                           #undef  MaxSize
                           #define MaxSize        ADOsize
   #endif
 #endif
//
 #ifdef   AKRSsize
   #if    AKRSsize>MaxSize
                           #undef  MaxSize
                           #define MaxSize        AKRSsize
   #endif
 #endif
//
#endif